<?php
/* @var $this SqController */
/* @var $model Sq */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'sq-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'streetname'); ?>
		<?php echo $form->dropDownList($model,'streetid', CHtml::listData(Street::model()->findAll(),'id','streetname'), array('class'=>"dfinput1",'style'=>"opacity:1; filter:alpha(opacity=100);"));  ?>
		<?php echo $form->error($model,'streetid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'sqname'); ?>
		<?php echo $form->textField($model,'sqname',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'sqname'); ?>
	</div>

	<div class="row">
		<?php //echo $form->labelEx($model,'sheng'); ?>
		<?php echo $form->hiddenField($model,'sheng',array('size'=>50,'maxlength'=>50,'value'=>'辽宁省')); ?>
		<?php echo $form->error($model,'sheng'); ?>
	</div>

	<div class="row">
		<?php //echo $form->labelEx($model,'shi'); ?>
		<?php echo $form->hiddenField($model,'shi',array('size'=>50,'maxlength'=>50,'value'=>'沈阳市')); ?>
		<?php echo $form->error($model,'shi'); ?>
	</div>

	<div class="row">
		<?php //echo $form->labelEx($model,'qu'); ?>
		<?php echo $form->hiddenField($model,'qu',array('size'=>50,'maxlength'=>50,'value'=>'沈河区')); ?>
		<?php echo $form->error($model,'qu'); ?>
	</div>
    
	<div class="row">
		<?php echo $form->labelEx($model,'fzr'); ?>
		<?php echo $form->textField($model,'fzr',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'fzr'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'lxdh'); ?>
		<?php echo $form->textField($model,'lxdh',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'lxdh'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'bgdh'); ?>
		<?php echo $form->textField($model,'bgdh',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'bgdh'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'dz'); ?>
		<?php echo $form->textField($model,'dz',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'dz'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'bz'); ?>
		<?php echo $form->textField($model,'bz',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'bz'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->